#!/bin/bash
source experiment.cfg
controller_dns=$(cat $controller_instanceid_file)
aws ec2 terminate-instances --instance-ids $controller_dns > /dev/null &
echo "Terminated controller on $controller_dns"
cat $node_instanceid_file | while read line;
do
	aws ec2 terminate-instances --instance-ids ${line} > /dev/null &
	echo "Terminated node on ${line}"
done
